<style>
<!--

form.reg-login input#RegisterForm_domain { 
	padding-left:80px; 
   
}
form.reg-login #domain_hint {
	//z-index:-99999;
    float:left;	
    position: relative;	
    color: #CCCCCC;
    font-size: 16px;
    top: -41px;
    left: 8px;
    margin-bottom: -40px;
    width: 72px;
    height: 30px;
    line-height: 30px;
	
}
-->
</style> 

<?php

/**
 * @param $action
 * @param boolean $ajax
 */
//init param
$ajax = isset ($ajax) ? $ajax : false;
$model = isset ($model) ? $model : new RegisterForm;

$form=$this->beginWidget('CActiveForm', array(
	'id'=>'register-form',
	'action'=>array('/user/register'), 
	'enableAjaxValidation'=>$ajax,
	'clientOptions'=>array('validateOnSubmit'=>true,
//							'errorCssClass'=>'invalid',
//							'successCssClass'=>'validity'
),
	'focus'=>'input:text[value=""]:first',
	'htmlOptions'=>array('class'=>'reg-login')
	
)); ?>
 

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->error($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('class'=>'input')); ?>
 	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('class'=>'input')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'domain'); ?>
		<?php echo $form->error($model,'domain'); ?>
		<?php echo $form->textField($model,'domain',array('class'=>'input','onKeyup'=>"value=value.replace(/^[^A-Za-z]+/g,'');value=value.replace(/[^A-Za-z0-9]/g,'')")); ?>
		<div id = 'domain_hint'>MR8.me/</div>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('注册',array('class'=>'button')); ?>
		<?php echo CHtml::link('已注册名人吧账号->登陆',array('site/login')); ?>
		
	</div>

<?php $this->endWidget(); ?>